package com.example.leetdemo.process;

import com.alibaba.fastjson.JSONObject;

import java.util.Arrays;

public class Solution1619 {

    public double trimMean(int[] arr) {
        int count = arr.length / 20;
        for (int i = 0; i < count; i++) {
            arr[i] = 0;
        }
        for (int j = arr.length - 1; j > arr.length - count - 1; j--) {
            arr[j] = 0;
        }
        double sum = Arrays.stream(arr).sum();
        return  (sum / (arr.length - count * 2)) ;
    }

    public static void main(String[] args) {
        String value = "11";
        JSONObject.parseObject(value);
    }
}
